package com.aiit.carinsurance2.service.impl;

import com.aiit.carinsurance2.dao.UserinsuranceDao;
import com.aiit.carinsurance2.pojo.Carinsurance;
import com.aiit.carinsurance2.pojo.Userinsurance;
import com.aiit.carinsurance2.service.UserinsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserinsuranceServiceImpl implements UserinsuranceService {

    @Autowired
    private UserinsuranceDao userinsuranceDao;

    @Override
    public List<Carinsurance> queryAll() {
        return userinsuranceDao.queryAll();
    }

    @Override
    public Userinsurance querybyid(Integer coverageid,Integer uid) {
        return userinsuranceDao.querybyid(coverageid,uid);
    }

    @Override
    public Integer insert(Integer coverageid, Integer uid) {
        return userinsuranceDao.insert(coverageid,uid);
    }

    @Override
    public int delete(Integer coverageid, Integer uid) {
        return userinsuranceDao.delete(coverageid, uid);
    }


}